@extends('admin.layout.layout')
@section('title')
<script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.config.js')}}"></script>
<script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.all.min.js')}}"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="{{asset('/public/ueditor1_4_3_3-utf8-php/utf8-php/lang/zh-cn/zh-cn.js')}}"></script>
    <title>北京仁爱慈善基金CMS管理系统 >> 项目内容</title>
@endsection
@section('con')
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">项目内容查看</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-info">
                <div class="panel-heading">
                    {{$datas->title}}
                </div>
                <div class="panel-body">
                    {!!$datas->editorValue!!}
                </div>
                <div class="panel-footer">
                   <div class="form-group input-group col-sm-4">
                        <input type="text" class="form-control" id="cinp">
                        <span class="input-group-btn">
                            <button id="cbtn" class="btn btn-info " type="button"><i>复制</i>
                            </button>
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
@section('js')
    <script type="text/javascript">
        // var ue = UE.getEditor('editor');

        $('#cbtn').click(function(){
            $('#cinp').select(); // 选择对象
            document.execCommand("Copy"); // 执行浏览器复制命令
            alert("已复制好，可贴粘。");
        })
    </script>
@endsection